#!/bin/bash
#
# add multi-user one time.
# Copyright 2022 yanyanl

function add1usr() {
  usr=`cat /usr/local/google/home/yanyanl/Downloads/shell-master/000_Shell学习/testFile000`
  for i in $usr
  do
   sudo useradd $i
   if [ $? -eq 0 ]; then
     echo "1234"|passwd --stdin $i #怎么添加用户的时候直接初始化密码？

   fi

  done
}

add1usr
